<?php
class Default_RecruitmentController extends Zend_Controller_Action {
	public function init() {
		/* Initialize action controller here */
		$this->newModel = new Default_Model_DbTable_News ();
	}
	public function indexAction() {
		// action body
		$maxId = $this->newModel->getNewsMaxId ( 20 );
		
		$maxNews = $this->newModel->getNewsById ( $maxId ['m'] );
		$this->view->maxNews = $maxNews;
		
		$this->view->topViewRe = $this->newModel->topRecrui ( 20 );
		
		$intro = $this->newModel->getNewsByCategoryId1 ( 20, $maxId ['m'] );
		$this->view->intro = $intro;
	}
}

